package com.tencreat.mapper.pt;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tencreat.domain.mall.vo.KillZoneVO;
import com.tencreat.domain.pt.MallPtGoods;
import com.tencreat.domain.pt.vo.ResPtGoodsListPCVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 拼团商品Mapper接口
 *
 * @author tencreat
 * @date 2021-11-08
 */
@Repository
public interface MallPtGoodsMapper extends BaseMapper<MallPtGoods> {

    List<KillZoneVO> ptZoneList();

    Page<ResPtGoodsListPCVO> list(@Param("page") Page<ResPtGoodsListPCVO> page, @Param("ptSn") String ptSn, @Param("goodsId") Long goodsId,
                                  @Param("zoneId") Integer zoneId, @Param("lotteryStatus") Integer lotteryStatus,
                                  @Param("goodsType") Integer goodsType, @Param("goodsStarts") Integer goodsStarts);
}
